<?php

namespace app\admin\service;

use app\common\service\WechatQrcodeService;

class SchoolQrcode
{

    /**
     * 学校小程序二维码
     */
    public static function CreateQrcode($school_id){
        try{
            $basefile = '/qrcode/school/school' . $school_id . '.jpg';
            $param = '?school_id=' . $school_id;
            $qrcode = WechatQrcodeService::testCreate('/pages/index/index' . $param, $basefile);
            return $qrcode;
        }catch (\Exception $e){
            p("学校小程序二维码：" . $school_id . '生成成功' . $e->getMessage());
        }
    }

}